<div id="title_right">
	<p id="title_right_left"></p>
	<div id="title_right_center">
		<p class="chu_title">SỬA CHI TIẾT HÓA ĐƠN</p>
	</div>
	<p id="title_right_right"></p>
</div>

<?php //var_dump($cthd)?>

<form name = "frm_updatechitiethoadon" method = "post" action = "">
<table class="table2">
<tr> 
	<td align="center">Mặt hàng</td>
	<td><select name = "cmb_MatHang">
		<?php if(is_array($data['listmh'])){
				foreach ($data['listmh'] as $item){
		?>
				<option value = "<?php echo $item['MaMH'];?>"
				<?php 
					if($cthd['MaMH'] == $item['MaMH']){
						echo 'selected';
					}
				?>>
				<?php echo $item['TenMH'];?>
				<?php }
				}?>
				</option>
		</select>
	</td>
</tr>

<tr> 
	<td align="center"> Số lượng</td>
	<td><input name = "SoLuong" type = "text" value = "<?php echo $cthd['SoLuongBan'];?>"/></td>
</tr>

<tr>
	<td colspan="2" align="center"><input name = "btok" type = "submit" value = "Cập nhật"/></td>
</tr>

</table>
</form>
